/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.discount.api.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.medusa.gruul.common.data.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 满减活动规则表
 * </p>
 *
 * @author lcysike
 * @since 2019-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_full_scale_rule")
@ApiModel(value="FullScaleRule对象", description="满减活动规则表")
public class FullScaleRule extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 本店店铺id
	 */
	@ApiModelProperty(value = "本店店铺id")
	@TableField("shop_id")
	private String shopId;

	/**
	 * 满减活动id
	 */
	@ApiModelProperty(value = "满减活动id")
	@TableField("full_scale_id")
	private Long fullScaleId;

	/**
	 * 满减条件：  0-满减劵  1-满折劵
	 */
	@ApiModelProperty(value = "满减条件：  0-满减劵  1-满折劵")
	@TableField("rule_type")
	private Integer ruleType;

	/**
	 * 优惠折扣
	 */
	@ApiModelProperty(value = "优惠折扣")
	@TableField("discount")
	private BigDecimal discount;

	/**
	 * 优惠金额
	 */
	@ApiModelProperty(value = "优惠金额")
	@TableField("discount_amount")
	private BigDecimal discountAmount;

	/**
	 * 满足条件金额
	 */
	@ApiModelProperty(value = "满足条件金额")
	@TableField("condition_amount")
	private BigDecimal conditionAmount;


}
